jQuery(document).ready(function () {
    selectList();
    $("#resetBtn").on("click",function () {
        $("#customerName").val("");
        $("#telephone").val("");
    });
});
function queryParams(params) {
    return getQueryParams(params, "searchForm");
}
function selectList(){
    $('#customerTable').bootstrapTable("destroy");
    $('#customerTable').bootstrapTable({
        method: "post",
        url: rootPath+"/customerCon/ajax/getCustomerList"
    });
}
function createOrder() {
    var selections = $('#customerTable').bootstrapTable('getSelections');
    if (selections.length == 0) {
        layer.msg('请选择一行数据进行操作！', function () {
        });
        return;
    }
    layer.open({
        type: 2,
        title: "创建订单",
        shadeClose: false,
        shade: 0.8,
        area: ['90%', '90%'],
        content: rootPath + "/orderManage/toPage/chooseProductView?decorator=decorator_blank&customerId="+selections[0].customer_id,
        maxmin: true
    });
}